public class Daughter extends mother{

    public String hobby;

    public Daughter() {
    }

    public Daughter(String name, int age, double height, double weight,String hobby) {
        super();
        this.hobby = hobby;
    }

    public Daughter(String hobby) {
        this.hobby = hobby;
    }

    public void watchTv(){
        System.out.println(this.name+ "在看动画片");
    }
    @Override
    public void work(){
        System.out.println(this.name+ "正在追剧");
    }
    @Override
    public void study() {
        System.out.println(this.name + "正在学习");
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    @Override
    public String toString() {
        return "Daughter{" +
                "hobby='" + hobby + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", weight=" + weight +
                '}';
    }
}
